Draft
Conversation
System.Reflection.Emit is blocked on arm64 simulators due to W^X — this is what NSubstitute/Castle.DynamicProxy needs: https://learn.microsoft.com/en-us/dotnet/maui/macios/interpreter The Mono interpreter bypasses this by interpreting emitted IL instead of generating native code. Sentry.Maui.Device.TestApp.csproj already has <UseInterpreter>true</UseInterpreter> for Release, and the build already passes EnableAot=false. So the two workarounds are redundant — either x64 via Rosetta OR the interpreter alone should suffice. Switching to iossimulator-arm64 should work with the current build settings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog. This PR will not appear in the changelog. 🤖 This preview updates automatically when you update the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4961 +/- ##
==========================================
+ Coverage 73.87% 73.89% +0.01%
==========================================
Files 496 496
Lines 17951 17951
Branches 3516 3516
==========================================
+ Hits 13262 13265 +3
+ Misses 3831 3825 -6
- Partials 858 861 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8bf3565 to
2b92506
Compare
mlaunch (inside xharness) checks if simulator watchdogs are disabled
before launching an app. If they aren't, it shuts down the simulator,
writes plist files, then reboots — this sequence is flaky on CI, often
leaving the simulator stuck in a Shutdown state with:
"Unable to lookup in current state: Shutdown"
Root cause was found by decompiling mlaunch with ilspycmd (it ships as
a compiled DLL in the xharness NuGet). It checks two plists under the
simulator's data directory:
~/Library/Developer/CoreSimulator/Devices/$UDID/data/Library/Preferences/
- com.apple.springboard.plist
- com.apple.frontboard.plist
All 6 FBLaunchWatchdog* keys must be >= 100, otherwise mlaunch shuts
down the sim to write them and reboots — which races on CI.
Fix: pre-write both plists with the 6 keys set to 100 before booting
the simulator ourselves. mlaunch then sees watchdogs already disabled
and the sim already booted, skipping its entire shutdown/reboot dance.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2b92506 to
d10ed15
Compare
a44a1e3 to
d10ed15
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
System.Reflection.Emitis blocked on ARM64 simulators due to W^X. The Mono interpreter (<UseInterpreter>true</UseInterpreter>) already handles this, so switching from x64/Rosetta toiossimulator-arm64works with the current build settings.#skip-changelog